package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RoutePageAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RoutePageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/route")
public interface IRouteServiceRemote {

    @GetMapping(value = "list")
    ResponseData<RoutePageAResp> list(RoutePageAReq routePageAReq);

    @GetMapping(value = "detail/{id}")
    ResponseData<RouteAResp> detail(String id);


    @PostMapping(value = "update")
    ResponseData update(RequestData<RouteUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<RouteAResp> add(RequestData<RouteAddAReq> requestData);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(String id);

}
